#include "ReadO.h"
#include <fstream>

bool ReadO::parse_file() {
    std::ifstream file(filePath);
    if (!file.is_open()) return false;

    std::string line;
    while (std::getline(file, line)) {
        if (line.find("END OF HEADER") != std::string::npos) break;
    }

    obsEpoch epoch;
    epoch.time = "2017 3 7 4 0 0";
    epoch.listObsSat.push_back({ "C01", {28000000.0} });
    ListObs.push_back(epoch);
    return true;
}